-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Membership Block #9802
Membership Block #9802
Conversation
@artpi there are a few JS linting messages on the test runs:
|
This is an automated check which relies on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments, I have not had the time to fully test this yet.
Also, and since we are introducing a bunch a new files, what do you think about adding them all to the pre-commit hook here in Jetpack?
jetpack/bin/pre-commit-hook.js
Line 37 in 7b6c749
'class.jetpack-plan.php', |
We've been trying to do that for all new files to slowly move towards better code coverage in the plugin.
3f8aa11
to
7956f6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this now and address the feedback in future PRs.
It's worth noting that I'm currently having issues inserting new amounts. I get the following JavaScript error when I try to submit a new amount:
Uncaught (in promise) TypeError: Cannot read property 'id' of null
at eval (edit.jsx:194)
This matches the following error on WordPress.com:
Fatal error: Uncaught Error: Call to undefined method WP_Error::to_array() in [...]jetpack-endpoints/memberships.php:105
Merged, but let's definitely address the API this week (Crew) and this new error asap (@artpi). |
I'm not wanting to go down the coding rabbit hole any more, but here's an innertubes show for ya to see and watch what happens: First, It says I'm NOT connected to the Pack-O-Jets. Which, I am!! I've paid for the Premium Jets: After the "You ain't connected to the Packs de La Jets" prompt, the "Connect to Stripe" button can't be clicked at all.
I turned on my Beta Blockers and loaded up the Gutenberries as well 👍
So, I decided to retry the Stripes, the Memberships, The Guttenberries, and the PacksOfJets again at 00:36 & still nothing https://youtu.be/SNxLOaHWAt8?t=36 |
@BurlesonBrad That error message should be displayed when the user you are logged in with is not linked to any WordPress.com account. When you originally connected your site to WordPress.com, you did so while logged in as an admin on your site. If another admin wants to use the Memberships block, they'll need to link their own account to WordPress.com first. Does that make sense, and apply to you here, or do you see that error message while logged in with the admin account you used when you first connected your site to WordPress.com? If the error appears even though the account you are currently logged in with is linked to WordPress.com, could you contact us via this form so we can run more tests with you and get this fixed? Thank you! |
Yessir. In that quick vid and the screenshot as well, both are logged in and connected to the same WP.com account that I've had since dinosaurs roamed the planet. |
This is the first PR of the block that is intended to provide something that beta users can test. We intend to work in small iterations and we will gladly address feedback in later PRs.
This introduces membership-button block to Jetpack.
This essentially will be a recurring donation button.
Purpose of the code in this PR is to:
This needs D26086-code .- deployedScreenshots
Internal references:
p89M8K-4a-p2
p1HpG7-6n6-p2
Testing instructions - Jurassic Ninja
The problem with this is that you can only use real money and real stripe accounts. If you want sandbox payments, you need to use the ngrok flow
12 Go to frontend, click the button that says contribution
Testing instructions - Jetpack Docker